package com.example.project.projectspringcloud.entity.user;

import com.example.project.projectspringcloud.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class Menu extends BaseEntity {

    private String name;

    private String url;

    private Integer parent;

    private String icon;

    private Integer visible;

    private String description;

    private Integer level;

    private Integer order;

    private List<Menu> subList;

    public Menu() {

    }

    public Menu(Integer id) {
        setId(id);
    }
}